<?php
 class EState    	  
 {
     const MD = 'md';
     const VA = 'va';
     const DC = 'dc';
     const DE = 'de';
     const FL = 'fl';
     
     const MDval = 'Marynland';
     const VAval = 'Virginia';
     const DCval = 'Washington,DC';
     const DEval = 'Delaware';
     const FLval = 'Florida';
     
    private $value;

    public function EState($value) {
        $this->value = $value;
    }
    public function getName()
    {
        return $this->value;
    }

    public function getValue() {
        switch ($this->value)
        {
            case EState::MD: return EState::MDval;
            case EState::VA: return EState::VAval;
            case EState::DC: return EState::DCval;
            case EState::DE: return EState::DEval;
            case EState::FL: return EState::FLval;
        }
        return '';
    }

    public static function getAllStates() 
    {
        return array('md', 'va', 'dc', 'de', 'fl');
    }
}
?>
